package com.hopu.blb_erp.mapper;

import com.hopu.blb_erp.entity.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {

    Department selectDepartmentByStaffId(Integer id);

    Department selectById(@Param("id")Integer id);

    List<Department> selectTree();

    List<Department> selectTreeSun();

    void insertDepart(Department department);

    void updateDepart(Department department);

    void  deleteDepart(@Param("id")Integer id);

}


